|
PHY MAKE SCENE
Make a new scene for the simulation.
PHY MAKE SCENE %index, simulationType, simulationSceneType , simulationFlags
index
Integer
index number of the scene, this can either be 1 or 2
simulationType
Integer
is used to specify whether the simulation will run in software or hardware, to use software mode specify 0 and to use hardware mode specify 1
simulationSceneType
Integer
controls what kind of scene will be used, 0 represents a rigid body scene, 1 represents a fluid scene, 2 represents a fluid scene in software and 3 represents a cloth scene
simulationFlags
Integer
use a value of 1 to enable multi threading
Use this command to create a new scene. Multiple scenes are useful for many purposes for example, you may want to use the PhysX PPU to simulate a fluid scene but at the same time have another scene running alongside in software. There is currently a maximum limit of 3 scenes and when phy start is called a scene will automatically be made and given the ID number of 0 so when attempting to make a new scene only ID numbers of 1 and 2 are available.
No example code is provided for this command
|